<?php
$email="abc@163.com";
setcookie("y_email",$email,time()+3600,"/");

$user="abc@163.com";
setcookie("user",$user,time()+3600,"/");

// Print a cookie
echo $_COOKIE["user"]."<br/>";

// A way to view all cookies
print_r($_COOKIE);
?>